﻿
;( function ( window, undefined ) {
	
	

    "use strict";

     // 对浏览器的UserAgent进行正则匹配，不含有微信独有标识的则为其他浏览器
//    var useragent = navigator.userAgent;
//    if (useragent.match(/MicroMessenger/i) != 'MicroMessenger') {
//        // 这里警告框会阻塞当前页面继续加载
//        alert('已禁止本次访问：您必须使用微信内置浏览器访问本页面！');
//        // 以下代码是用javascript强行关闭当前页面
//        var opened = window.open('about:blank', '_self');
//        opened.opener = null;
//        opened.close();
//    }
    /**
     * 定义接口对象
     * 接口定义命名写死 "Interface.siguo." + 接口地址的方法名，参照demo
     * 接口定义注释简单的接口说明
     * 不特殊说明都是使用POST方式请求，GET会特殊说明
     * @constructor
     */
    var Interface = { 
        /**
         * 服务器地址
         */
        host: {
        		zs : "http://116.62.201.5:42000/",
        		zs_pre : "vma_zs_api/",
        		zhisheng_api_host_servser : "http://n.goesports.cn/vma_zs_api/"
        },
        image : {
        	pre : 'http://116.62.201.5:41000/',
        },
        /**
         * 模块对象
         */
        zs: {}
    };

    window["Interface"] = Interface;

    
    // ************************************ 以下为接口定义 *************************************

    /**
     * 文件上传
     */
    Interface.zs.uploadSingleUploadFtp = Interface.host.zs + Interface.host.zs_pre + "upload/singleUploadFtp";
    
    
    //*******************************用户模块***********************************
    /**
     * 登录模块
     */
    Interface.zs.userLogin = Interface.host.zs + Interface.host.zs_pre + "user/login";
	
    /**
     * 用户注册接口
     */
    Interface.zs.userUserReg = Interface.host.zs + Interface.host.zs_pre + "user/userReg";
	
    /**
     * 用户注册接口
     */
    Interface.zs.userSendValiCode = Interface.host.zs + Interface.host.zs_pre + "user/sendValiCode";
    
    
    /**
     * 用户注册接口
     */
    Interface.zs.userFindPwd = Interface.host.zs + Interface.host.zs_pre + "user/findPwd";
    
    /**
     * 个人行为记录
     */
    Interface.zs.userAddAction = Interface.host.zs + Interface.host.zs_pre + "user/addAction";
    
    
    /**
     * 取消个人行为
     */
    Interface.zs.userDelAction = Interface.host.zs + Interface.host.zs_pre + "user/delAction";
    
    
    
    //*******************************用户模块***********************************
    
    
   //*******************************用户模块***********************************
    /**
     * 查询资讯分类
     */
    Interface.zs.articleQryTypes = Interface.host.zs + Interface.host.zs_pre + "article/qryTypes";
	
    /**
     * 查询资讯分类
     */
    Interface.zs.articleQryArticleByType = Interface.host.zs + Interface.host.zs_pre + "article/qryArticleByType";
	
    
    /**
     * 查询资讯分类
     */
    Interface.zs.articleGetArticleByID = Interface.host.zs + Interface.host.zs_pre + "article/getArticleByID";
	
    Interface.zs.articleQryCommentList = Interface.host.zs + Interface.host.zs_pre + "article/qryCommentList";
	
    Interface.zs.articleKeepOrRemoveArticle = Interface.host.zs + Interface.host.zs_pre + "article/keepOrRemoveArticle";
	
    
    Interface.zs.articleUpVote = Interface.host.zs + Interface.host.zs_pre + "article/upVote";
    
    Interface.zs.articleSubmitComment = Interface.host.zs + Interface.host.zs_pre + "article/submitComment";
    
    Interface.zs.articleUpVoteComment = Interface.host.zs + Interface.host.zs_pre + "article/upVoteComment";
    
    
    
  //*******************************城市模块***********************************
    
   Interface.zs.orgGetOrgList = Interface.host.zs + Interface.host.zs_pre + "org/getOrgList";

   Interface.zs.orgGetOrgByIP = Interface.host.zs + Interface.host.zs_pre + "org/getOrgByIP";

  
   
   //*******************************广告模块***********************************
   
   Interface.zs.adQrAdvInfos = Interface.host.zs + Interface.host.zs_pre + "ad/qrAdvInfos";
   
   Interface.zs.adGetById = Interface.host.zs + Interface.host.zs_pre + "ad/getById";
   
   
   //*******************************游戏模块***********************************
   /**
    * 游戏首页初始化
    */
   Interface.zs.gameIndexGame = Interface.host.zs + Interface.host.zs_pre + "game/indexGame";

   Interface.zs.gameGetGameDetailById = Interface.host.zs + Interface.host.zs_pre + "game/getGameDetailById";

   Interface.zs.gameQryGameCommentsInfo = Interface.host.zs + Interface.host.zs_pre + "game/qryGameCommentsInfo";
	
   Interface.zs.gameSubmitComment = Interface.host.zs + Interface.host.zs_pre + "game/submitComment";

   Interface.zs.gameUpVote = Interface.host.zs + Interface.host.zs_pre + "game/upVote";
   
   
   
  
 //*******************************赛事模块***********************************
   /**
    */
   Interface.zs.matchGetMatchType = Interface.host.zs + Interface.host.zs_pre + "match/getMatchType";
	
  
   /**
    */
   Interface.zs.matchGetMatchList = Interface.host.zs + Interface.host.zs_pre + "match/getMatchList";
   
   /**
    */
   Interface.zs.matchGetMatchDetail = Interface.host.zs + Interface.host.zs_pre + "match/getMatchDetail";
    
   Interface.zs.matchMatchRegOrder = Interface.host.zs + Interface.host.zs_pre + "match/matchRegOrder";
   
   Interface.zs.matchGetMatchByTitle = Interface.host.zs + Interface.host.zs_pre + "match/getMatchByTitle";
   
   
   
   //*******************************消息模块***********************************
   /**
    */
   Interface.zs.messageQrySysMsgList = Interface.host.zs + Interface.host.zs_pre + "message/qrySysMsgList";
   
   
   /**
    */
   Interface.zs.messageGetById = Interface.host.zs + Interface.host.zs_pre + "message/getById";
   
   //*******************************我的***********************************
   /**
    * 查询用户信息
    */
   Interface.zs.ucGetUserInfoById = Interface.host.zs + Interface.host.zs_pre + "uc/getUserInfoById";
   
   /**
    * 更新手机号
    */
   Interface.zs.ucUpdateMobile = Interface.host.zs + Interface.host.zs_pre + "uc/updateMobile";
   
   /**
    * 查询智胜豆套餐
    */
   Interface.zs.ucQryBeanOfferList = Interface.host.zs + Interface.host.zs_pre + "uc/qryBeanOfferList";
   
   /**
    * 查询智胜钻套餐
    */
   Interface.zs.ucQryDiamondInfos = Interface.host.zs + Interface.host.zs_pre + "uc/qryDiamondInfos";
   
   /**
    * 智胜豆兑换智胜钻
    */
   Interface.zs.ucBeanToDiamond = Interface.host.zs + Interface.host.zs_pre + "uc/beanToDiamond";
   
   /**
    * 查询我的参赛纪录
    */
   Interface.zs.ucQryMyMatchs = Interface.host.zs + Interface.host.zs_pre + "uc/qryMyMatchs";
   
   /**
    * 查询我收藏的资讯
    */
   Interface.zs.ucQryMyKeepArticle = Interface.host.zs + Interface.host.zs_pre + "uc/qryMyKeepArticle";
   /**
    * 查询我收藏的资讯
    */
   Interface.zs.ucQryMykeepMatch = Interface.host.zs + Interface.host.zs_pre + "uc/qryMykeepMatch";
   
   /**
    * 更新个人信息
    */
   Interface.zs.ucUpdateUserInfo = Interface.host.zs + Interface.host.zs_pre + "uc/updateUserInfo";
   
   /**
    * 生成购买智胜豆订单，返回流水
    */
   Interface.zs.ucZsBeanOrder = Interface.host.zs + Interface.host.zs_pre + "uc/zsBeanOrder";
   
   
   /**
    */
   Interface.zs.sysinfoGetSysinfo = Interface.host.zs + Interface.host.zs_pre + "sysinfo/getSysinfo";
   
   /**
    */
   Interface.zs.payGetPayCertify = Interface.host.zs + Interface.host.zs_pre + "pay/getPayCertify";
   
   
   /**
    */
   Interface.zs.userRefreshToken = Interface.host.zs + Interface.host.zs_pre + "user/refreshToken";
   
   
   
   
   
   
   
   
} ( window ) );